/**
 * 
 */
package fr.univ_tln.inf9.exaplanning.controleur.composante;

import fr.univ_tln.inf9.exaplanning.api.composante.TrainingPath;

/**
 * @author julien
 *
 */
public class TrainingPathController {

	public TrainingPathView listView = null;
	
	private TrainingPath r = null;
	
	public TrainingPathController (TrainingPath r){
		this.r = r;
		
		//listView = new JFrameListMaterial(this, r.getEquipment(),r.getId());
		
		addToListGroupListener();
		
		}


	private void addToListGroupListener() {
		r.addGroupListener(listView);
		
	}

	

	public void displayViews(){
		listView.display();
	}
	
	public void closeViews(){
		listView.close();
	}
	
	/*public void notifyListTraining_pathChanged(List<String> mat){
		r.setTraining_path(mat);;
	}*/
	
	public void notifyGroupAddedToList(String m){
		r.addGroup(m);
	}
	
	
	public void notifyTraining_pathRemovedToList(String nameM){
		r.removeGroup(nameM);
	}
}
